3.68 \(\int e^{-1+3 x} \cos (e^{-1+3 x}) \sin (1+e^{-1+3 x}) \, dx\)

Optimal. Leaf size=30 \[ \frac {1}{6} e^{3 x-1} \sin (1)-\frac {1}{12} \cos \left (2 e^{3 x-1}+1\right ) \]

[Out]

-1/12*cos(1+2*exp(-1+3*x))+1/6*exp(-1+3*x)*sin(1)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {2282, 4574, 2638} \[ \frac {1}{6} e^{3 x-1} \sin (1)-\frac {1}{12} \cos \left (2 e^{3 x-1}+1\right ) \]

Antiderivative was successfully verified.

[In]

Int[E^(-1 + 3*x)*Cos[E^(-1 + 3*x)]*Sin[1 + E^(-1 + 3*x)],x]

[Out]

-Cos[1 + 2*E^(-1 + 3*x)]/12 + (E^(-1 + 3*x)*Sin[1])/6

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 4574

Int[Cos[w_]^(q_.)*Sin[v_]^(p_.), x_Symbol] :> Int[ExpandTrigReduce[Sin[v]^p*Cos[w]^q, x], x] /; IGtQ[p, 0] &&
IGtQ[q, 0] && ((PolynomialQ[v, x] && PolynomialQ[w, x]) || (BinomialQ[{v, w}, x] && IndependentQ[Cancel[v/w],
x]))

Rubi steps

\begin {align*} \int e^{-1+3 x} \cos \left (e^{-1+3 x}\right ) \sin \left (1+e^{-1+3 x}\right ) \, dx &=\frac {1}{3} \operatorname {Subst}\left (\int \cos (x) \sin (1+x) \, dx,x,e^{-1+3 x}\right )\\ &=\frac {1}{3} \operatorname {Subst}\left (\int \left (\frac {\sin (1)}{2}+\frac {1}{2} \sin (1+2 x)\right ) \, dx,x,e^{-1+3 x}\right )\\ &=\frac {1}{6} e^{-1+3 x} \sin (1)+\frac {1}{6} \operatorname {Subst}\left (\int \sin (1+2 x) \, dx,x,e^{-1+3 x}\right )\\ &=-\frac {1}{12} \cos \left (1+2 e^{-1+3 x}\right )+\frac {1}{6} e^{-1+3 x} \sin (1)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.06, size = 30, normalized size = 1.00 \[ \frac {1}{6} e^{3 x-1} \sin (1)-\frac {1}{12} \cos \left (2 e^{3 x-1}+1\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[E^(-1 + 3*x)*Cos[E^(-1 + 3*x)]*Sin[1 + E^(-1 + 3*x)],x]

[Out]

-1/12*Cos[1 + 2*E^(-1 + 3*x)] + (E^(-1 + 3*x)*Sin[1])/6

________________________________________________________________________________________

fricas [A]  time = 0.99, size = 42, normalized size = 1.40 \[ -\frac {1}{6} \, \cos \relax (1) \cos \left (e^{\left (3 \, x - 1\right )}\right )^{2} + \frac {1}{6} \, \cos \left (e^{\left (3 \, x - 1\right )}\right ) \sin \relax (1) \sin \left (e^{\left (3 \, x - 1\right )}\right ) + \frac {1}{6} \, e^{\left (3 \, x - 1\right )} \sin \relax (1) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(-1+3*x)*cos(exp(-1+3*x))*sin(1+exp(-1+3*x)),x, algorithm="fricas")

[Out]

-1/6*cos(1)*cos(e^(3*x - 1))^2 + 1/6*cos(e^(3*x - 1))*sin(1)*sin(e^(3*x - 1)) + 1/6*e^(3*x - 1)*sin(1)

________________________________________________________________________________________

giac [A]  time = 0.13, size = 24, normalized size = 0.80 \[ \frac {1}{6} \, e^{\left (3 \, x - 1\right )} \sin \relax (1) - \frac {1}{12} \, \cos \left (2 \, e^{\left (3 \, x - 1\right )} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(-1+3*x)*cos(exp(-1+3*x))*sin(1+exp(-1+3*x)),x, algorithm="giac")

[Out]

1/6*e^(3*x - 1)*sin(1) - 1/12*cos(2*e^(3*x - 1) + 1)

________________________________________________________________________________________

maple [A]  time = 0.26, size = 25, normalized size = 0.83 \[ -\frac {\cos \left (1+2 \,{\mathrm e}^{-1+3 x}\right )}{12}+\frac {{\mathrm e}^{-1+3 x} \sin \relax (1)}{6} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(-1+3*x)*cos(exp(-1+3*x))*sin(1+exp(-1+3*x)),x)

[Out]

-1/12*cos(1+2*exp(-1+3*x))+1/6*exp(-1+3*x)*sin(1)

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 24, normalized size = 0.80 \[ \frac {1}{6} \, e^{\left (3 \, x - 1\right )} \sin \relax (1) - \frac {1}{12} \, \cos \left (2 \, e^{\left (3 \, x - 1\right )} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(-1+3*x)*cos(exp(-1+3*x))*sin(1+exp(-1+3*x)),x, algorithm="maxima")

[Out]

1/6*e^(3*x - 1)*sin(1) - 1/12*cos(2*e^(3*x - 1) + 1)

________________________________________________________________________________________

mupad [B]  time = 0.31, size = 24, normalized size = 0.80 \[ \frac {{\mathrm {e}}^{3\,x-1}\,\sin \relax (1)}{6}-\frac {\cos \left (2\,{\mathrm {e}}^{3\,x-1}+1\right )}{12} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(3*x - 1)*sin(exp(3*x - 1) + 1)*cos(exp(3*x - 1)),x)

[Out]

(exp(3*x - 1)*sin(1))/6 - cos(2*exp(3*x - 1) + 1)/12

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(-1+3*x)*cos(exp(-1+3*x))*sin(1+exp(-1+3*x)),x)

[Out]

Timed out

________________________________________________________________________________________